package tech.aistar.mapper;

import org.apache.ibatis.annotations.Select;
import tech.aistar.entity.Theme;

import java.util.List;

/**
 * Created by Administrator on 2019/10/11.
 */
public interface ThemeMapper {

    //根据主题id查询所有(名字/图片)
    @Select("select * from theme")
    List<Theme> findAllTheme();

    //根据主题id查询所有(名字/图片)
    @Select("select * from theme where theme_id = #{themeId}")
    Theme findThemeById(Integer themeId);

}
